﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/// <summary>
/// 服务器消息缓存组件
/// </summary>
public class ServerCacheCompoent : SingletonCompoent
{
    public List<ServerMessageInfo> MessageList = new List<ServerMessageInfo>();
}
/// <summary>
/// 消息类型
/// </summary>
public enum MessageType
{
    None,
    SyncEntity,
    DestoryEntity,
    ChangeSingletonComp,
}
/// <summary>
/// 服务器消息
/// </summary>
public struct ServerMessageInfo
{
    /// <summary>
    /// 第几帧
    /// </summary>
    public int Frame;
    /// <summary>
    /// 消息类型
    /// </summary>
    public MessageType m_MessageType;
    /// <summary>
    /// 同步协议
    /// </summary>
    public SyncMessageBase Msg;
}

